package com.glx.learn_spring.learn_spring_03_bean_instance;

import com.glx.learn_spring.learn_spring_03_bean_instance.dao.IBookDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author haoli
 */
public class AppForInstanceBook {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        IBookDao bookDao = ctx.getBean("bookDao",IBookDao.class);
        bookDao.save();
    }
}
